<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'In the lead!?',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/10/20.jpg" alt="Ivy on city trees" class="framed-centred-image" width="649" height="480"/>
<section id="include.d">
	<h2><code>include.d</code></h2>
	<p>
		I&apos;m starting to question my own memory.
		What if I didn&apos;t run the debug code after writing the test case involving $a[DNS] lookups last week?
		I mean, maybe that was the final test case I built that day, and I didn&apos;t have time to run it.
		And what if I didn&apos;t have a successful run of the test code this week, and the code from last week never got run due to the scripts catching on the new failed test cases?
		That would explain why the $a[DNS] issue didn&apos;t show up until later.
	</p>
	<p>
		No, that&apos;s not it though.
		I didn&apos;t start work on the $a[URI]-related class until I&apos;d finished debugging the Hack assembler.
		I know for a fact that I ran the debug scripts without error after I&apos;d finished building tests for the assembler.
		The theory that I didn&apos;t actually run the tests last week is feasible, but not the theory that I also didn&apos;t run them this week.
		I&apos;m still at a loss as to the sudden error then.
		Darn.
	</p>
	<p>
		In any case, I think I&apos;ll need to remove this function from <code>include.d</code> as well.
		There shouldn&apos;t be a need for an unproxied Internet connection to test this library.
	</p>
</section>
<section id="religion">
	<h2>Religion</h2>
	<p>
		I spent a good part of last night and this morning cleaning up to be ready for the missionaries who had scheduled to meet with me today at 11:00, but they never showed up.
		Rude.
		It&apos;s not nice to set appointments and then just miss them.
		That was a waste of my time, too.
		I could have been working on coursework instead.
	</p>
	<p>
		An hour and twenty minutes after they were supposed to show, I heard a knock on my door and thought they&apos;d finally decided to show.
		They hadn&apos;t though.
		It was someone working for an election campaign and trying to convince people to vote in particular directions on a few measures.
		It turned out I already agreed with the voting directions they were aiming for, so it didn&apos;t take long.
		Vote no on the measure that prevents abortions from being covered by state-sponsored healthcare, vote no on the measure that makes e-cigarettes untaxable, et cetera.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			Thank you for recognising the difference between sex and gender.
			Our reading material for the week didn&apos;t recognise this difference, which was severely disappointing.
		</p>
		<p>
			The purpose of the healthcare industry is to make money, not to help patients, so I can definitely see why you would distrust them.
			I don&apos;t really trust them myself, either, though I do go to them for aid when I have a problem I think they can and will help with.
			For example, I&apos;ve got a glass shard stuck in my foot.
			I tried to dig it out myself, but that didn&apos;t go well, so I&apos;m going in to see a doctor this Wednesday to get it extracted.
			I figure there&apos;s not much for them to botch up with that.
			A steady hand, a scalpel, and a pair of tweezers would do the trick; I just lack the scalpel.
			I don&apos;t tend to buy into medications though unless there&apos;s a pretty big problem.
			Doctors have frequently been known to prescribe unnecessary drugs to make a commission from the drug companies.
			As for unfair treatment, I wouldn&apos;t know how equally patients get treated.
			I haven&apos;t really come across anything of that nature during my research.
		</p>
		<p>
			I agree that respecting each other is important, though this isn&apos;t always tied to religion.
			Personally, I&apos;m an atheist.
			No god is telling me to respect other people, it&apos;s just a matter of making the world a better place.
			If you want respect, you should give respect.
		</p>
	</blockquote>
</section>
<section id="heath">
	<h2>Health</h2>
	<p>
		The increased pain in my foot has made it so I have to walk funny to avoid putting pressure on that spot.
		That&apos;s causing both my feet further pain.
		I&apos;d love to know the cause of the increased pain.
		Previously, I&apos;d&apos;ve assumed an infection had begun, which still might be the case.
		However, we&apos;ve been covering the brain&apos;s ability to process pain lately ...
		Basically, if you ignore pain and let yourself get distracted, it literately goes away.
		The brain is a natural computer and has limited resources.
		If you make it spend most of its processing power on something other than pain, it doesn&apos;t have much left with which to feel pain with.
		But if you pay attention to the pain, it frees up mental resources specifically to deal with what you&apos;re focusing on, so being the pain, your brain now has more resources specifically dedicated to paying attention to the pain and feeling it.
		By taking the time to visit the doctors&apos; office and set up an appointment, I got my brain thinking about the pain.
		And I can&apos;t really put it out of my mind, as I need to remember not to miss my appointment.
	</p>
	<p>
		Maybe starting tomorrow, I&apos;ll start wearing three socks on that foot to give it some padding or something so I can walk normally while at home.
	</p>
</section>
<section id="sales">
	<h2>Sales contest</h2>
	<p>
		The head manager told me I&apos;m actually in the lead now.
		After two days!?
		That&apos;s a bit shocking.
		I didn&apos;t think I&apos;d take the lead at all, so to take it so soon comes as a big surprise.
		That said, I have an edge on everyone else.
	</p>
	<p>
		First, I&apos;m part of night crew.
		Morning crew doesn&apos;t see as many customers, so it will take longer for them to pull around their averages.
		Oh, wait.
		They also have lower customer counts from before, making their averages easier to pull around.
		I hadn&apos;t thought about that.
		I still have one actual advantage though: I&apos;ve worked a register both days of the contest.
		Most people haven&apos;t been on a till in that time, and I&apos;m not sure if any of those that have did so both days.
		This advantage of mine is one that compounds, too.
		The head manager is using this contest to try to correct for the fact that the entire store&apos;s sales have been low lately.
		We raised our prices twice recently, and it&apos;s causing customers to purchase less.
		Two of our least-expensive menu items didn&apos;t change prices, so people are buying those instead of the bigger-ticket items that some of them used to.
		The head manager has been sweating this downward trend; their boss is sure to hold them accountable for it even though it&apos;s not their fault!
		So this contest is designed to get results, not to create a fair competition between employees.
		Because I happened to be on a till yesterday and show promising results, I got put on a till again today.
		Or maybe today&apos;s shift was just luck again.
		But from here on out, I&apos;m most likely going to get a register shift almost every day I work.
		That gives me more room to bend my average upward.
		The one four-hour shift I work would be the main exception to what will probably be a streak of till-working days, as the four-hour shifters aren&apos;t there long enough for it to be a good idea to put them on a register.
	</p>
	<p>
		The head manager also gave me a clearer look at who else is potentially going to win this.
		In second place, we have the smooth salesperson I mentioned the other day.
		With a preacher on one side of the family and a car salesperson on the other, they know what they&apos;re doing when it comes to talking people into things.
		I can easily see them winning this.
		In third place, we have the head manager.
		The head manager isn&apos;t going to jump in and snap up the prize from their own contest.
		In fact, they don&apos;t even work the tills hardly ever.
		The only time they do is sometimes when it&apos;s late at night, there are hardly any customers, and one of the register workers has been sent home due to slow business or just having been put on a till even though they weren&apos;t scheduled to close.
		And because the register is checked out to the person originally working it, the head manager&apos;s sales get counted as the sales of whatever person had been on the register earlier.
		Except ... when the register freaks out because of the buggy and just generally terrible system it runs.
		When that happens, sales become impossible until either the person the register is checked out to or any manager signs in using their fingerprint.
		Whoever signs in gets the sales, so if the register worker has gone home, some manager such as the head manager will get credit for the sales.
		And sometimes when the register worker has been sent home, it&apos;s not a manager that takes over the register, so a manager has to sign in and take the credit without performing the sales.
		I think it&apos;s equally probable that the head manager has position two in the ranking legitimately or through being required to take credit for sales.
	</p>
	<p>
		Actually, what was I thinking?
		If these were random sales, the head manager should have about an average of the sales of the other workers.
		For their position to be so high, their position is likely more legitimate than I initially gave it credit for.
	</p>
</section>
END
);
